﻿using System;
using DefaultDspPlugins.Common.Modulizer.Engine.Modules.Waveforms;
using ZquenceStudio3Host.DspPlugins.Synthesizers.Nodesizer.Engine;
using DefaultDspPlugins.UI.Common.Modulizer.Engine.GUIv2.FrontEndComponents;

namespace DefaultDspPlugins.UI.Common.Modulizer.Engine.GUI.Modules
{
    [ModuleUI(typeof(CustomWaveFormModule))]
    class CustomWaveformModuleUI : BaseModuleUI
    {
        public CustomWaveformModuleUI(BaseModule module) : base(module)
        {

        }

        protected override string OnSetLayout(BaseModule module)
        {
            string defaultUI =
@"
[ModuleUIPanel]
{
	Name = ModuleUIPanel333;
	[Properties]
	{
		ExpR = 0.1;
		ExpG = ifequal(truncate(truncate(X/4)%63),0,0.7,sin(X*0.01+X*0.01)*0.1+0.6);
		ExpB = ifequal(truncate(truncate(X/4)%63),0,0.6,sin(X*0.01+X*0.01)*0.1+0.5);
		Dimension procent = True;
		MinSize = 0 0;
		MaxSize = 10000000000 10000000000;
		Bg Color = 255 255 255 255;
		Overlay texture = NULL;
		Overlay texture color = 255 255 255 255;
		Name = ModuleUIPanel333;
		TagName = ;
		Position = 0 0 0;
		Rotation = 0 0 0;
		Scale = 100 100 0;
		Visible = True;
	}
}
";

            return defaultUI;
        }

        protected override void OnUICreated(ModuleUIPanel uiPanel)
        {

        }

        protected override void OnUIDestoyed(ModuleUIPanel uiPanel)
        {

        }
    }
}
